package com.aabte.springcloudlearn.feigncustomerdemo.fallback;

import com.aabte.springcloudlearn.feigncustomerdemo.service.RetryCustomerFeignService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 服务降级回调类
 *
 * @author Daniel
 */
@Slf4j
@Component
public class RetryCustomerFeignServiceFallback implements RetryCustomerFeignService {
    @Override
    public String feignRetry() {
        log.warn("Start fallback by feignRetry.");
        return "Fallback by feignRetry.";
    }
}
